<div class="box"> <!-- Box begins here -->
	<h2>Thay đổi mật khẩu</h2>
	<!--
	Standard form within a fieldset tag;
-->
	<?php 
		$error = $this->error;
		$data = $this->data;
	?>
	<form method="post" action="" enctype="multipart/form-data"><!-- Form -->
				<?php 
					if(isset($this->success)){
						echo "<div class='success'><center><h3>".$this->success."</h3></center></div>";					
					}
				?>
					<fieldset><legend>Thông tin đăng nhập</legend>
					<div class="input_field">
						<label for="email">Email đăng nhập</label>
 												
 						<?php echo $this->formText("email",$data['email'],array('readonly'=>'readonly')); ?>
 						<?php 
 							if(isset($error['email'])){
							echo '<span class="validate_error">'.$error['email'].'</span>';
							}
 						?>
					</div>
					</fieldset>
					<fieldset><legend>Mật khẩu</legend>
					<div class="input_field">
						<label for="password">Password cũ</label>
 												
 						<?php echo $this->formPassword("oldpassword",null,null); ?>
 						<?php 
 							if(isset($error['oldpassword'])){
							echo '<span class="validate_error">'.$error['oldpassword'].'</span>';
							}
 						?>
					</div>
					<div class="input_field">
					<label for="newpassword">Password mới</label>
 												
 						<?php echo $this->formPassword("newpassword",null,null); ?>
 						<?php 
 							if(isset($error['newpassword'])){
							echo '<span class="validate_error">'.$error['newpassword'].'</span>';
							}
 						?>
					</div>
					<div class="input_field">
					<label for="newpassword">Password xác nhận</label>
 												
 						<?php echo $this->formPassword("repassword",null,null); ?>
 						<?php 
 							if(isset($error['repassword'])){
							echo '<span class="validate_error">'.$error['repassword'].'</span>';
							}
 						?>
					</div>
					</fieldset>
					<input class="submit" type="submit" value="Lưu" />
			</form><!-- /Form -->
</div> <!-- END Box-->